Objects Reference

light_vertex::init_draw

Prototype

void init_draw(bsp_object *obj)

Parameters

Parameter Type Description
obj bsp_object * object that is to use the hardware lights

Return Value

None

Remarks

This function initializes and sets up the hardware lights stored in its light array. Each light is checked for shadows from the obj center position to the light position. After calling this function all geometry drawn will be lit with stored lights. To end lighting, end_draw must be called.